import Vue from 'vue'
import Router from 'vue-router'
import Home from '../views/home.vue'
import Write from '../views/write.vue'
import Detail from '../views/detail.vue'
import te from '../components/layout.vue'
import Record from '../views/record.vue'
import Categroy from "../views/categroy.vue";
import Friends from "../views/friends.vue";
import Moments from "../views/moments.vue";
import About from "../views/about.vue";
Vue.use(Router)

export default new Router({
  routes: [
    {
      path:'/home',
      component:Home
    },
    {
      path:"/write",
      component:Write
    },
    {
      path:'/detail',
      component:Detail
    },
    {
      path:'/layout',
      component:te
    },
    {
      path:'/record',
      component:Record
    },
    {
      path:'/categroy/:cate',
      component:Categroy
    },
    {
      path:'/friends',
      component:Friends
    },
    {
      path:'/moments',
      component:Moments
    },
    {
      path:'/about',
      component:About
    }
  ]
})
